package com.weasel.weixin.commons.message.bean;

import com.thoughtworks.xstream.annotations.XStreamAlias;

/**回复语音消息
 * Created by Dylan on 2015/10/9.
 */
@XStreamAlias("xml")
public class WeiXinPostCommonXmlAnswerVoiceMessage extends AbstractWeiXinPostCommonXmlAnswerMessage {

    public WeiXinPostCommonXmlAnswerVoiceMessage(){
        setMsgType(VOICE_MESSAGE_TYPE);
    }

    @XStreamAlias("Voice")
    private VoiceBody voice;

    public VoiceBody getVoice() {
        return voice;
    }

    public void setVoice(VoiceBody voice) {
        this.voice = voice;
    }

    public static class VoiceBody{
        @XStreamAlias("MediaId")
        private String mediaId;

        public String getMediaId() {
            return mediaId;
        }

        public void setMediaId(String mediaId) {
            this.mediaId = mediaId;
        }
    }
}
